/*
 * map_internal.h
 *
 *  Created on: Feb 28, 2011
 *      Author: thienlong
 */

#ifndef MAP_INTERNAL_H_
#define MAP_INTERNAL_H_
#include "map.h"
extern hash_t hash(hash_t h);

#define SEGMENT_FOR(cmap, hash) (cmap->segms + ((hash >> cmap->segm_shift) & cmap->segm_mask))

object segment_put_nosyn(concurrentmap *map, segment *segm, object k,
		hash_t hash_code, object v, bool only_if_absent);
#endif /* MAP_INTERNAL_H_ */
